{load header}
<!--/H-->

    <!-- 内容区 -->
    <div id="main-content">
        <div id="top-alert" class="fixed alert alert-error" style="display: none;">
            <button class="close fixed" style="margin-top: 4px;">&times;</button>
            <div class="alert-content">这是内容</div>
        </div>
        <div id="main" class="main">
            
            <!-- nav -->
                        <!-- nav -->
            

            
	<div class="main-title">
		<h2>加息任务管理</h2>
	</div>
	<div class="cf">
            <!--排序-->
            【投资编号：<span class='red'>A{$item['aid']}</span>，&nbsp;总获加息：<span class='red'>{$item['total_interest_finance']}&nbsp;溜溜币</span>，&nbsp;固定总加息：<span class='red'>{$item['interest_fixed']}&nbsp;溜溜币</span>，&nbsp;溜溜珠加息：<span class='red'>{$item['interest_extra']}&nbsp;溜溜币</span>】
	</div>
	<div class="tab-wrap">
		
		<div class="tab-content">
			
			<!-- 数据列表 -->
			<div class="data-table table-striped">
				<table>
					<thead>
						<tr>
						<th>计息日期(DATE)</th>
						<th>用户名(USER)</th>
                                                <th>总加息(溜溜币)</th>
                                                <th>固定加息(溜溜币)</th>
                                                <th>加息珠(溜溜币)</th>
						<th>操作</th>
						</tr>
					</thead>
					<tbody>
						<!--{loop $list $k1 $val}-->
						<tr>
                                                    <td>{$val['create_time']}</td>
                                                    <td>{$item['username']}</td>
                                                    <td>{$val['total_finance']}</td>
                                                    <td>{$val['fixed_finance']}</td>
                                                    <td>{$val['extra_finance']}</td>
                                                    <td>明细</td>
						</tr>
						<!--{/loop}-->
					</tbody>
				</table>
				<!-- 分页 -->
				<div class="page">
					<div>
					{$showpage}
					<span class="rows">共 {$Total} 条记录</span>
					</div>
				</div>
			</div>
	
		</div>
	</div>
<script>
    $(function(){
	//搜索功能
	$("#search").click(function(){
            
	var url = $(this).attr('url');
        var status = $("#sch-sort-txt-award").attr("data");
        var query  = $('.search-form').find('input').serialize();
        query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g,'');
        query = query.replace(/^&/g,'');
                if(status != ''){
                        query += '&st=' + status; //板块
        }
        if( url.indexOf('?')>0 ){
            url += '&' + query;
        }else{
            url += '?' + query;
        }
		window.location.href = url;
	});

	/* 状态搜索子菜单 */
	
	$(".search-form").find(".drop-award").hover(function(){
		$("#sub-sch-menu-award").removeClass("hidden");
		
	},function(){
		$("#sub-sch-menu-award").addClass("hidden");
		
	});
	$("#sub-sch-menu-award li").find("a").each(function(){
		$(this).click(function(){
			var text = $(this).text();
			$("#sch-sort-txt-award").text(text).attr("data",$(this).attr("value"));
			$("#sub-sch-menu-award").addClass("hidden");
		})
	});
    //回车自动提交
    $('.search-form').find('input').keyup(function(event){
        if(event.keyCode===13){
            $("#search").click();
        }
    });
     /* 实时更新分类信息 */
    $(".tab-content").on("submit", "form", function(){
        var self = $(this);
        $.post(
                self.attr("action"),
                self.serialize(),
                "json"
        );
        return false;
    }).on("focus","input",function(){
        $(this).data('param',$(this).closest("form").serialize());
    }).on("blur", "input", function(){
        if($(this).data('param')!=$(this).closest("form").serialize()){
            $(this).closest("form").submit();
        }
    });
});  
</script>
<!--F-->{load footer}